package plsqlfs.sql;

import java.sql.Connection;
import java.sql.SQLException;

public class RichConnection {

	private final Connection delegate;

	public RichConnection(Connection delegate) {
		this.delegate = delegate;
	}

	public static RichConnection wrap(Connection delegate) {
		return new RichConnection(delegate);
	}

	public RichCallableStatement prepareCall(String sql) throws SQLException {
		return RichCallableStatement.wrap( delegate.prepareCall(sql) );
	}

	public void close() throws SQLException {
		delegate.close();
	}

}
